<!doctype html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>blur生成彩色阴影</title>
</head>
<style>
  @import url(https://fonts.googleapis.com/css?family=Righteous);
  .container {
    width: 200px;
    margin: 20px auto;
  }

  .avator {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: url("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1505822443&di=941986df9c6514d5d43eaba4aa938347&imgtype=jpg&er=1&src=http%3A%2F%2Fimg.qqtouxiang8.net%2Fuploads%2Fallimg%2Fc150313%2F142623130563050-922006.jpg") no-repeat center center;
    background-size: 100% 100%;
  }
  .avator::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: 100% 100%;
    border-radius: 50%;
    transform: scale(0.95);
    filter: blur(10px) brightness(80%) opacity(0.8);
    z-index: -1;
  }

  p {
    margin-top: 30px;
    text-align: center;
    font-size: 28px;
    font-family: Righteous;
  }

</style>
<body>
<div class="container">
  <div class="avator"></div>
  <p>bulr shadow</p>
</div>
</body>
</html>
